package org.paboo.Util;

public class ParameterObject {

	public final static String DEFAULT_CONTECT = "pChart";

	public static boolean hasText(String str){
		if(!(str != null && str.length() > 0)) {
			return false;
		}
		return "".equals(str.trim());
	}

	public static boolean hasInteger(Integer i) {
		return i != null;
	}
	public static boolean hasBoolean(Boolean b) {
		return b != null;
	}
	public static String convertByteArrays(byte[][] bas) {
		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < bas.length; i++) {
			for (int j = 0; j < bas[0].length; j++) {
				sb.append(bas[i][j]);
			}
			sb.append("\r\n");
		}
		return sb.toString();
	}
}
